#!/bin/bash
DEBFULLNAME="Kaoru Konno(kaorin)"; export DEBFULLNAME
DEBEMAIL="kaoru.konno@gmail.com"; export DEBEMAIL
ver=`cat mikutube-release/DEBIAN/control | grep Version | tail -1 | gawk '{printf("%s",$2);}'`
target="mikutube-"$ver"_all.deb"
cp MikuTube.py mikutube-release/usr/share/mikutube/
#cp youtube-dlm mikutube-release/usr/share/mikutube/
cp README.txt mikutube-release/usr/share/mikutube/
cp splash.jpg mikutube-release/usr/share/mikutube/
dpkg --build mikutube-release/ $target
#tar生成
#tar cvzf mikutube-"$ver".tar.gz MikuTube.py splash.jpg README.txt MikuTube.png youtube-dlm
tar cvzf mikutube-"$ver".tar.gz MikuTube.py splash.jpg README.txt MikuTube.png

